/*
 * 
 * 
 * 
 */
package com.hboxs.asl.service.impl;

import com.hboxs.asl.dao.CategoryDao;
import com.hboxs.asl.entity.Category;
import com.hboxs.asl.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Service - 总分类
 */
@Service("categoryServiceImpl")
public class CategoryServiceImpl extends BaseServiceImpl<Category, Long> implements CategoryService {

    @Resource(name = "categoryDaoImpl")
    private CategoryDao categoryDao;

    @Resource(name = "categoryDaoImpl")
    public void setBaseDao(CategoryDao categoryDao) {
        super.setBaseDao(categoryDao);
    }


    @Override
    public Category findByName(String name) {
        return categoryDao.findByName(name);
    }
}
